import useUserStore from "../store/modules/user";
import { useRoute } from "vue-router";

const $route = useRoute()
const useUser = useUserStore()

export const isCreater = (id: number) => {
  const project = useUser.projectData.find((item: any) => item.id === Number($route.params.id))
  return project?.createdBy?.id === id;
}